@import './variate.less';

each(@spacing, {
  .erp-m-@{value} {
    margin: @value * 1px;
  }

  .erp-mt-@{value} {
    margin-top: @value * 1px;
  }

  .erp-mb-@{value} {
    margin-bottom: @value * 1px;
  }

  .erp-ml-@{value} {
    margin-left: @value * 1px;
  }

  .erp-mr-@{value} {
    margin-right: @value * 1px;
  }

  .erp-mx-@{value} {
    margin-right: @value * 1px;
    margin-left: @value * 1px;
  }

  .erp-my-@{value} {
    margin-top: @value * 1px;
    margin-bottom: @value * 1px;
  }

  .erp-p-@{value} {
    padding: @value * 1px;
  }

  .erp-pt-@{value} {
    padding-top: @value * 1px;
  }

  .erp-pb-@{value} {
    padding-bottom: @value * 1px;
  }

  .erp-pl-@{value} {
    padding-left: @value * 1px;
  }

  .erp-pr-@{value} {
    padding-right: @value * 1px;
  }

  .erp-px-@{value} {
    padding-right: @value * 1px;
    padding-left: @value * 1px;
  }

  .erp-py-@{value} {
    padding-top: @value * 1px;
    padding-bottom: @value * 1px;
  }

});

each(@elips, {
  .erp-ellipsis-@{value} {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: @value;
    -webkit-box-orient: vertical;
    text-wrap: wrap;
  }
});

each(@weights, {
  .erp-font-weight-@{value} {
    font-weight: @value;
  }

});

each(@sizes, {
  .erp-font-size-@{value} {
    font-size: @value *1px;
  }
});

each(@line-heights, {
  .erp-font-line-height-@{value} {
    line-height: @value * 1px;
  }
});



.erp-flex {
  display: flex !important;
}

.erp-column-flex {
  display: flex !important;
  flex-direction: column;
}

.erp-row-flex-end {
  display: flex !important;
  flex-direction: row;
  justify-content: flex-end;
}

.erp-row-flex-start {
  display: flex !important;
  flex-direction: row;
  justify-content: flex-start;
}

.erp-row-center-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-row-flex-center {
  display: flex !important;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.erp-row-justify-evenly {
  display: flex !important;
  flex-direction: row;
  justify-content: space-evenly;
}

.erp-row-justify-between {
  display: flex !important;
  flex-direction: row;
  justify-content: space-between;
}

.erp-row-justify-center {
  display: flex !important;
  flex-direction: row;
  justify-content: center;
}

.erp-row-item-center {
  display: flex !important;
  flex-direction: row;
  align-items: center;
}

.erp-row-item-end {
  display: flex !important;
  flex-direction: row;
  align-items: flex-end;
}

.erp-column-item-start {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
}

.erp-column-item-center {
  display: flex !important;
  flex-direction: column;
  align-items: center;
}

.erp-column-item-end {
  display: flex !important;
  flex-direction: column;
  align-items: end;
}

.erp-row-inline {
  display: inline;
}

.w100 {
  width: 100%;
}